package com.lx.sort;

public class SortUtils {
    public  static void swap(int[] arr ,int i,int j){
        int temp=arr[i];
        arr[i]=arr[j];
        arr[j]=temp;
    }


    public static void  print (int []arr){
        for (int i = 0; i < arr.length; i++) {

            if (i!=0&&arr[i]>=arr[i-1]) {
                System.out.print(arr[i]);
                System.out.print(",");
            }else {
                System.out.println(arr[i]);
                System.out.println("err");
            }
        }
    }
}
